<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>排行榜</title>
  <style>
    * {
  box-sizing: border-box;
}

body,
.rank {
  display: flex;
  flex-direction: column;
  background-color: #eee;
  max-width: 1024px;
  margin: auto;
}
.rank {
  margin: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto,
    Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji,
    Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
}
.top {
  position: relative;
  z-index: 1;
  width: 100%;
  background-color: #d23e34;
  padding-top: 15px;
  box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.2);
}
.top-title {
  text-align: center;
  font-size: 18px;
  color: #fff;
}
.tabs {
  padding: 15px;
}
.tabs > ul {
  margin: 0;
  display: flex;
  border-radius: 10px;
  background-color: #cd2523;
  overflow: hidden;
  padding: 0;
}
.tab-item {
  flex: 1;
  text-align: center;
  line-height: 40px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
}
.tab-active {
  background-color: #b9211f;
}
.cats {
  padding: 15px;
  border-radius: 10px 10px 0 0;
  background-color: #fff;
}
.cat-list {
  display: flex;
  overflow-x: auto;
  padding: 0;
  margin: 0;
}
.cat-list::-webkit-scrollbar {
  display: none;
}
.cat-item {
  line-height: 25px;
  background-color: #f7f7f7;
  font-size: 14px;
  color: #333;
  padding: 0 12px;
  border-radius: 5px;
  margin-right: 10px;
  white-space: nowrap;
  list-style: none;
}
.cat-active {
  background-color: #d23e34;
  color: #fff;
}
.list {
  position: relative;
  width: 100%;
  flex: 1;
  overflow: auto;
  padding: 15px;
}
.sku {
  display: block;
  text-decoration: none;
  padding: 15px;
  border-radius: 10px;
  background-color: #fff;
  margin-bottom: 15px;
}
.sku:last-child {
  margin-bottom: 0;
}
.content {
  display: flex;
}
.cover {
  width: 680px;
  height: 400px;
  position: relative;
  border-radius: 5px;
  overflow: hidden;
}
.cover-img {
  width: 800px;
}
.cover-rank {
  position: absolute;
  width: 36px;
  left: 0;
  top: 0;
}
.info {
  /* 流动式布局 */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  height: 400px;
  margin-left: 15px;
}
.sku-title {
  color: #333;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.types {
  display: flex;
}
.type-item {
  padding: 2px 5px;
  background-color: #f7f7f7;
  border-radius: 3px;
  color: #999;
  font-size: 12px;
}
.price {
  color: #d23e34;
  font-size: 13px;
  font-weight: 500;
}
.desc {
  align-self: flex-end;
  text-align: right;
  display: flex;
  align-items: center;
  font-size: 12px;
  color: rgb(97, 95, 95);
}
.source {
  flex: 1;
}
.comment {
  background-color: #f7f7f7;
  border-radius: 5px;
  padding: 10px;
  color: #666;
  margin-top: 15px;
  font-size: 14px;
}
.comment strong {
  color: #333;
}
.desc-number {
  margin-left: 5px;
}
.desc .iconfont {
  margin-left: 20px;
}
.desc .icon-comment {
  margin-left: 0;
}
  </style>
</head>
<body>
  <div class="rank">
    <header class="top">
      <div class="top-title">排行榜</div>
      <nav class="tabs">
        <ul>
          <li class="tab-item tab-active">热门风景</li>
          <li class="tab-item">大众评价</li>
        </ul>
      </nav>
      <nav class="cats">
        <ul class="cat-list">
          <li class="cat-item cat-active">全部</li>
        </ul>
      </nav>
    </header>
    <main class="list">
      <a href="#" class="sku">
        <div class="content">
          <div class="info">
            <div class="cover">
            <img src="imgs/壁纸.jpg" class="cover-img" />
            <img src="imgs/rank-top1.png" class="cover-rank" />
            </div>
            <div class="sku-title">梦幻霞光映山海，瑰丽海滨奇景，邀您驻足沉醉</div>
            <div class="desc">
              <i class="iconfont icon-comment"></i>
              <span class="desc-number">526.2w</span>
              <i class="iconfont icon-thumb"></i>
              <span class="desc-number">888.8w</span>
            </div>
          </div>
        </div>
      </a>
      <a href="#" class="sku">
        <div class="content">
          <div class="info">
            <div class="cover">
            <img src="imgs/山峦.png" class="cover-img" />
            <img src="imgs/rank-top2.png" class="cover-rank" />
            </div>
            <div class="sku-title">云海翠峰叠，天路入仙境，共赴此境涤荡心灵</div>
           <div class="desc">
              <i class="iconfont icon-comment"></i>
              <span class="desc-number">391.2w</span>
              <i class="iconfont icon-thumb"></i>
              <span class="desc-number">666.6w</span>
            </div>
          </div>
        </div>
      </a>
      <a href="#" class="sku">
        <div class="content">
          <div class="info">
            <div class="cover">
            <img src="imgs/草地.png" class="cover-img" />
            <img src="imgs/rank-top3.png" class="cover-rank" />
            </div>
            <div class="sku-title">赤岩叠云海，翠谷接天际，邀君共览天地奇境</div>
            <div class="desc">
              <i class="iconfont icon-comment"></i>
              <span class="desc-number">126.6w</span>
              <i class="iconfont icon-thumb"></i>
              <span class="desc-number">516.6w</span>
            </div>
          </div>
        </div>
      </a>
    </main>
  </div>
</body>
</html>